import React, { useState } from "react";
import ClassCom from "./views/classCom";
import FnCom from "./views/fnCom";
import Detail from "./views/detail";
import { BrowserRouter, HashRouter, Routes, Route } from 'react-router-dom'
export default () => {


  return (
    <BrowserRouter>
      <Routes>
        <Route path="/" element={ <ClassCom></ClassCom> }></Route>
        <Route path="/fn" element={ <FnCom></FnCom> }></Route>
        <Route path="/detail/:id/:name" element={ <Detail></Detail> }></Route>
      </Routes>
    </BrowserRouter>
  );
};
